package Ecra;

import java.awt.Dimension;

import javax.swing.JFrame;



public abstract class Ecra extends JFrame {



	public static Byte requestBit = 0001;

	private Dimension dimension;


	public void setDimension(Dimension dimension) {
		this.dimension = dimension;
	}

	public void close(Ecra ecra){
		this.close(ecra);

	}

	public Dimension getScreenDimension(){
		return dimension;
	}

	public void setEcraPosition(double percentageX, double percentageY){



	}
	/**
	 * Metodo para ver se o valor escrito na textField esta entre 0 > && =<5
	 */
	public boolean valorInseridoValido(String aval_value){

		try {		
			double aux = Integer.parseInt(aval_value);	
			return !(aux < 0 || aux > 5);

		} catch (NumberFormatException e) {
			if(aval_value.equals(""))
				return true;

			return false;
		}
	}

	public void baseConfig(){


	}
}
